//
//  NSString+TimeStamp.h
//  MoodDiary
//
//  Created by MoodDiary on 2020/1/16.
//  Copyright © 2020 MoodDiary. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (TimeStamp)

+ (NSString *)getMonthAndDay:(NSString *)timeStamp;

+ (NSString *)getHourAndMinute:(NSString *)timeStamp;

+ (NSString *)getYear:(NSString *)timeStamp;

+ (NSString *)getMonth:(NSString *)timeStamp;

+ (NSString *)getDay:(NSString *)timeStamp;

+ (BOOL)isThisYear:(NSString *)timeStamp;

+ (BOOL)isThisMonth:(NSString *)timeStamp;

+ (NSString *)convertTimeStringToTimeStamp:(NSString *)timeString withFormart:(NSString *)formart;

+ (NSString *)convertTimeStringToTimeStamp:(NSString *)timeString;

+ (NSString *)convertTimeStringToTimeStamp2:(NSString *)timeString;

+ (NSString *)convertTimeStampToTimeString:(NSString *)timeStamp;

+ (NSString *)convertTimeStampToTimeString2:(NSString *)timeStamp;

+ (NSString *)convertTimeStampToTimeString3:(NSString *)timeStamp;

+ (NSString *)convertTimeStampToMH:(NSString *)timeStamp;

+ (NSString *)compareWithCurrrentDate:(NSString *)timeStamp;

+ (NSString *)compareWithDate1:(NSString *)timeStamp1 toDate2:(NSString *)timeStamp2;

+(NSString *)compareDayDiffWithDate1:(NSString *)timeStamp1 toDate2:(NSString *)timeStamp2;

+ (NSString *)compareWithCurrrentDate2:(NSString *)timeStamp;

+ (NSString *)compareWithCurrrentDate3:(NSString *)timeStamp;

+ (NSString *)currentTimeStamp;

+ (NSString *)currentTime;

+ (NSString *)currentTime2;

+ (NSString *)currentHour;

+ (NSString *)currentMinute;

+ (NSString *)currentSecond;

+ (NSString *)currentMonthAndDay;

+ (NSString *)currentYear;

+ (NSString *)currentMonth;

+ (NSString *)currentDay;

+ (NSString *)currentYearAndMonth;

+ (NSString *)monthAndDay:(NSString *)timeStamp;

+ (NSString *)covertDateToStringWith:(NSDate *)date;

+ (NSString *)leftTimeWithSeconds:(NSInteger)second;

+ (NSString *)leftTimeWithSeconds2:(NSInteger)second;

+ (NSString *)getChineseHourDescription;

+ (NSString *)dateWeekWithTimeStamp:(NSString *)timeStamp;

@end

NS_ASSUME_NONNULL_END
